using System;
using System.Text;

namespace Aquarinum.WebSocekt.Core.Utils
{
    public static partial class Extensions
    {
        /// <summary>
        ///     A string extension method that decode a Base64 String.
        /// </summary>
        /// <param name="this">The @this to act on.</param>
        /// <returns>The Base64 String decoded.</returns>
        public static string DecodeBase64(this string @this)
        {
            byte[] outputb = Convert.FromBase64String(@this);
            return Encoding.UTF8.GetString(outputb);
        
        }
    }
}